<!--
 * @Author: 噜噜噜 1163376226@qq.com
 * @Date: 2025-03-27 16:17:58
 * @LastEditors: 噜噜噜 1163376226@qq.com
 * @LastEditTime: 2025-04-25 14:52:10
 * @FilePath: /auto/automation-project/scenario.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>场景管理</title>
    <link rel="stylesheet" href="../css/style.css">
</head>

<body>
    <div class="header-container">
        <h1 class="main-title">场景管理</h1>
    </div>

    <div class="scenario-container">
        <div class="scenario-controls">
            <div class="form-row">
                <label for="scenarioName" class="form-label">场景名称</label>
                <input type="text" id="scenarioName" class="form-control" required>
                <button id="newScenario" class="btn">创建场景</button>
            </div>
            <div class="form-row">
                <label for="scenarioList" class="form-label">选择场景</label>
                <select id="scenarioList" class="form-select"></select>
            </div>
        </div>

        <div class="module-layout">
            <div class="module-left">
                <h2 class="section-title">全部模块</h2>
                <ul id="allModules" class="sortable-list"></ul>
            </div>
            <div class="module-right">
                <h2 class="section-title">已选模块</h2>
                <ul id="selectedModules" class="sortable-list"></ul>
            </div>
        </div>

        <button id="saveScenario" class="btn btn-block">保存场景</button>
    </div>

    <script type="module">
        import { initScenarioPage } from '../js/scenarioManager.js';
        document.addEventListener('DOMContentLoaded', initScenarioPage);
    </script>
</body>

</html>